<template>
  <div>
    <div class="a4" id="contract">
      <!-- 头部 -->
      <word-header1 disabled :value="header" />
      <!-- 正文 -->
      <word-text disabled :list="contractList" />
      <!-- 尾部 -->
      <word-footer1 :value="footer" />
    </div>

    <!-- 打印按钮 -->
    <el-button-group class="printerBtn">
      <el-button type="primary" icon="el-icon-printer" @click="printerBtn">打印</el-button>
      <el-button type="primary" icon="el-icon-finished" @click="sendEleSign">发送电签</el-button>
    </el-button-group>
  </div>
</template>

<script>
import indexMixin from './mixins/index';
import WordHeader1 from '@/components/Contract/WordHeader1';
import WordFooter1 from '@/components/Contract/WordFooter1';
import WordText from '@/components/Contract/WordText';

export default {
  components: {WordText, WordHeader1, WordFooter1},
  mixins: [indexMixin],
  data() {
    return {
      header: {},
      contractList: [],
      footer: {},

      type: 'unstandard'
    };
  },
  mounted() {
    this.header = this.$route.params.header;
    this.contractList = this.$route.params.contractList;
    this.footer = this.$route.params.footer;
  },
  methods: {}
};
</script>

<style lang="scss" scoped>
.a4 {
  margin: 20px auto;
}
.printerBtn {
  position: fixed;
  top: 20px;
  right: 20px;
}
</style>
